import { Router } from 'express';
import * as Controller from '../api/controllers/researcher.controller';

const router = Router();

router
  .route('/')
  .get(
    Controller.getResearchers
  );

router
  .route('/:id')
  .get(
    Controller.getResearcherById
  );

router
  .route('/')
  .post(
    Controller.addResearcher
  );

router
  .route('/:id')
  .put(
    Controller.updateResearcherById
  );

router
  .route('/:id')
  .delete(
    Controller.deleteResearcherById
  );

export default router;